package entity

import (
	"shqsoft.cn/pasnj/base"
)

//CompClieKhgl 对公客户关联
type CompClieKhgl struct {
	ID        int      `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	CUID      *int     `gorm:"column:CUID"`
	CompClie  CompClie `gorm:"ForeignKey:CUID"`
	LCUID     *int     `gorm:"column:LCUID;"`
	LCompClie CompClie `gorm:"ForeignKey:LCUID"`
}

//TableName 表名
func (CompClieKhgl) TableName() string {
	return "T_COMP_CLIE_KHGL"
}

func CompClieKhglEF() base.EntityFunc {
	return func() interface{} {
		entity := CompClieKhgl{}
		return &entity
	}
}
func CompClieKhglESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []CompClieKhgl
		return &entities
	}
}
func init() {
	relationship := []string{"CompClie"}
	base.DaoPoolObj.Put("CompClieKhgl", base.NewDefaultDao(CompClieKhglEF(), CompClieKhglESF(), relationship))
}
